let buf = Buffer.alloc(5, 'abcde', 'binary')

let resBuf = Buffer.alloc(5)
buf.slice(0, 2).copy(resBuf)
console.log(buf, !buf)

console.log(resBuf)
